import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Creat with IntelliJ IDEA
 * Description
 * User: mamba24
 * Date: 2022-12-16
 * Time: 18:55
 * To BE A Better Person-2020-3-2
 */
public class App {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("spring-dependency.xml");
        User user=(User) context.getBean("user");
        user.sayHi();
    }
}
